package com.huawei.crm.query;

import lombok.Getter;
import lombok.Setter;
import org.springframework.util.StringUtils;

@Setter
@Getter
public class EmployeeQueryObject extends QueryObject{

    private String keyword;

    private Long deptId = -1L;

    //如果字符串类型的参数为null或者空字符串,统一返回null
    public String getKeyword(){

        return StringUtils.isEmpty(keyword)? null : keyword;
    }

}
